using System;
using System.Collections.Generic;
using System.Text;
using PetShop.Domain.Model;
using PetShop.Infrastructure.NHibernate;
using NHibernate;
namespace PetShop.Infrastructure.Gateways
{
	public class CategoryGateway
	{

        private readonly ISession _session;

        public CategoryGateway()
        {
            _session = NHibernateHttpModule.CurrentSession; 
        }

        public Category GetCategoryByID(string categoryID)
        {
            Category cat = _session.Get<Category>(categoryID);
            return cat;
        }



	}
}
